<style>
    .controls {
        color: #999
    }

    .minwidth {
        width: 45px !important
    }

    div[name='d_gaiban'], div[name='d_al'] {
        width: 100%;
        float: left;
    }

    .form-horizontal .control-group1 {
    }

    .inputw {
        width: 80px !important;
    }
    .form-horizontal .col-md-2,col-md-4{
        padding-right: 0 !important;
        padding-left: 0 !important;}
    .marleft {
        margin-left: 90px !important;
    }
</style>
<php>$type=''</php>
<div class="wrap">
    <form method="post" id="form_horizontal_arr" class="form-horizontal" action="#" style="width:100%; float:left">
        <fieldset>
            <div class="p_title">
                <span class="span_title">基础信息</span>
            </div>
            <div class="control-group1-p">
                <div class="form-group" style="width:100%">
                    <label class="control-label">状态：</label>
                    <div class="col-md-8">
                        <select class="form-control"  disabled name="pro_status" style="width: 179px">
                            <option value="1"  <if condition="$pro_status eq 1"> selected</if>>启用</option>
                            <option value="2"  <if condition="$pro_status eq 2">  selected</if>>停用</option>
                        </select>
                    </div>
                </div>

                <div class="form-group" >
                    <label class="control-label" style="width: 150px">产品名称：</label>
                    <div class="col-md-2" style="width: 12%">
                        <input type="hidden" class="form-control"  disabled name="id" required value="{$id}">
                        <input type="hidden" class="form-control"  disabled name="pro_code" required value="{$pro_code}">
                        <input type="hidden" class="form-control"  disabled name="pro_type" required value="{$pro_type}">
                        <input type="text" class="form-control " disabled id="pro_name" name="pro_name" value="{$pro_name}">
                    </div>
                    <label class="control-label inputw">规制：</label>
                    <div class="col-md-2" style="width: 8%">
                        <select class="form-control"  disabled name="regulation" style="width: 100px">
                            <option value="1" <if condition="$regulation eq 1">  selected</if>>单穴</option>
                            <option value="2" <if condition="$regulation eq 2">  selected</if>>双穴</option>
                            <option value="3" <if condition="$regulation eq 3">  selected</if>>三穴</option>
                        </select>
                    </div>
                    <label class="control-label inputw">碑型：</label>
                    <div class="col-md-2" style="width: 8%">
                        <select class="form-control"  disabled name="stele_type" style="width: 100px">
                            <if condition="$stele_type eq 1">
                                <option value="1" selected>立碑</option>
                                <option value="2">卧碑</option>
                                <else/>
                                <option value="1">立碑</option>
                                <option value="2" selected>卧碑</option>
                            </if>
                        </select>
                    </div>
                    <label class="control-label" style="width: 80px">占地长度：</label>
                    <div class="col-md-2" style="width: 10%;">
                        <input type="text" class="form-control"  disabled style="width: 100px" name="pro_length" required
                               value="{$pro_length}"> mm
                    </div>
                    <label class="control-label" style="width: 80px">占地宽度：</label>
                    <div class="col-md-2" style="width: 10%">
                        <input type="text" class="form-control"  disabled style="width: 100px;" name="pro_width" required
                               value="{$pro_width}"> mm
                    </div>
                    <label class="control-label" style="width: 90px">墓碑总高：</label>
                    <div class="col-md-2" style="width: 10%">
                        <input type="text" class="form-control"  disabled style="width: 100px" name="pro_height" required
                               value="{$pro_height}"> mm
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">价格：</label>
                    <div class="col-md-2" style="width: 12%">
                        <input type="text" class="form-control"  disabled  name="pro_price" required value="{$pro_price}" />
                    </div>
                    <label class="control-label">产品图片：</label>
                    <div class="col-md-2">
                        <php>$img_url=cmf_get_image_preview_url($pro_photo);</php>
                        <input type="hidden" name="pro_photo" id="file_path" value="{$pro_photo}">
                        <img height="36" src="{$img_url}" class="preview" id="file_path-preview" />
                        <a class="btn btn-primary" onClick="uploadOneImage('产品图片', '#file_path','{$result.tomb_num}')">{:lang("UPLOAD")}产品图片</a>
                        <span class="form-required">*</span>
                    </div>
                </div>
            </div>
            <div class="p_title">
                <span class="span_title">墓碑信息</span>
            </div>
            <div class="control-group1-p">
                <foreach name="infoData" item="vo">
                    <div class="form-group" name="base">
                        <div class="col-md-2" style="width: 24%;padding-right: 0;padding-left: 17px;">
                            <label class="control-label" style="width: 150px">{$vo.iname}：</label>
                            <input type="hidden" name="iname[]" value="{$vo.iname}">
                            <input type="hidden" name="isort[]" value="{$vo.isort}">
                            <input type="text" class="form-control minwidth"  disabled name="iwidth[]" placeholder="宽"
                                   value="{$vo.iwidth}">
                            <input type="text" class="form-control minwidth"  disabled name="iheight[]" placeholder="高"
                                   value="{$vo.iheight}">
                            <input type="text" class="form-control minwidth"  disabled name="ithick[]" placeholder="厚"
                                   value="{$vo.ithick}"> mm

                        </div>
                        <div class="col-md-2" style="width: 17%">
                            <label class="control-label inputw">材料种类：</label>
                            <div class="col-md-4">
                                <select class="form-control"  disabled name="icate[]">
                                    <volist name="cate_type" id="voc">
                                        <if condition="$vo.icate eq $voc.id">
                                            <option value="{$voc.id}" selected>{$voc.name}</option>
                                            <else/>
                                            <option value="{$voc.id}">{$voc.name}</option>
                                        </if>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-2" style="width:12%">
                            <label class="control-label w70">数量：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="inumber[]" style="width:100px;"
                                       value="{$vo.inumber}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:13%">
                            <label class="control-label w100">材料价格：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="imaterial_price[]" style="width:100px;"
                                       value="{$vo.imaterial_price}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:13%">
                            <label class="control-label w100">维修单价：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="irepair_price[]" style="width:100px;"
                                       value="{$vo.irepair_price}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:12%">
                            <label class="control-label w100">更换单价：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="ichange_price[]" style="width:100px;"
                                       value="{$vo.ichange_price}">
                            </div>
                        </div>
                    </div>
                </foreach>
                <div class="form-group" >
                    <label class="control-label" style="width: 170px">基础：</label>
                    <div class="col-md-2">
                        <select class="form-control"  disabled name="pro_base" jichu1 id="select_jichu">
                            <if condition="$pro_base eq 1">
                                <option value="1" selected>整石</option>
                                <option value="2">贴面</option>
                                <else/>
                                <option value="1">整石</option>
                                <option value="2" selected>贴面</option>
                            </if>
                        </select>
                    </div>
                </div>
                <foreach name="baseData" item="bo" key="b">
                    <div class="form-group"  name="base">
                        <div name="zhengshi">
                            <div class="col-md-2" style="width: 24%;padding-right: 0;padding-left: 17px;">
                                <label class="control-label" style="width: 170px">{$bo.iname}：</label>
                                <input type="hidden" name="bname[]" value="{$bo.iname}">
                                <input type="hidden" name="bsort[]" value="{$bo.isort}">
                                <input type="text" class="form-control minwidth"  disabled name="bwidth[]" placeholder="宽"
                                       value="{$bo.iwidth}">
                                <input type="text" class="form-control minwidth"  disabled name="bheight[]" placeholder="高"
                                       value="{$bo.iheight}">
                                <input type="text" class="form-control minwidth"  disabled name="bthick[]" placeholder="厚"
                                       value="{$bo.ithick}"> mm
                            </div>
                            <div class="col-md-2" style="width: 17%">
                                <label class="control-label w80">材料种类：</label>
                                <div class="col-md-4">
                                    <select class="form-control"  disabled name="bcate[]">
                                        <volist name="cate_type" id="vo">
                                            <!--<if condition="$bo.icate eq $vo.id">-->
                                            <option value="{$vo.id}" selected>{$vo.name}</option>
                                            <!--<else/>-->
                                            <option value="{$vo.id}">{$vo.name}</option>
                                            <!--</if>-->
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="col-md-2" style="width:12%">
                                <label class="control-label w70">数量：</label>
                                <div class="col-md-4">
                                    <input type="text" class="form-control"  disabled name="bnumber[]" style="width:100px;"
                                           value="{$bo.inumber}">
                                </div>
                            </div>
                            <div class="col-md-2" style="width:13%">
                                <label class="control-label w100">材料价格：</label>
                                <div class="col-md-4">
                                    <input type="text" class="form-control"  disabled name="bmaterial_price[]"
                                           style="width:100px;" value="{$bo.imaterial_price}">
                                </div>
                            </div>
                            <div class="col-md-2" style="width:13%">
                                <label class="control-label w100">维修单价：</label>
                                <div class="col-md-4">
                                    <input type="text" class="form-control"  disabled name="brepair_price[]" style="width:100px;"
                                           value="{$bo.irepair_price}">
                                </div>
                            </div>
                            <div class="col-md-2" style="width:12%">
                                <label class="control-label w100">更换单价：</label>
                                <div class="col-md-4">
                                    <input type="text" class="form-control"  disabled name="bchange_price[]" style="width:100px;"
                                           value="{$bo.ichange_price}">
                                </div>
                            </div>
                        </div>
                    </div>
                </foreach>

                <foreach name="plateData" item="po" key="k">
                    <div  class="form-group" name="base">
                        <div name='d_gaiban'>
                        <div class="col-md-2" style="width: 22%">
                            <label class="control-label" style="width: 170px">{$po.iname}：</label>
                            <input type="hidden" name="pname[]" value="{$po.iname}">
                            <input type="hidden" name="psort[]" value="{$po.isort}">
                            <input type="text" class="form-control minwidth"  disabled name="pwidth[]" placeholder="宽" value="{$po.iwidth}">
                            <input type="text" class="form-control minwidth"  disabled name="pheight[]" placeholder="高" value="{$po.iheight}">
                            <input type="text" class="form-control minwidth"  disabled name="pthick[]" placeholder="厚" value="{$po.ithick}">
                            mm
                        </div>
                        <div class="col-md-2" style="width: 19%">
                            <label class="control-label w100">材料种类：</label>
                            <div class="col-md-4">
                                <select class="form-control"  disabled name="pcate[]">
                                    <volist name="cate_type" id="vo">
                                        <if condition="$po.icate eq $voc.id">
                                            <option value="{$vo.id}" selected>{$vo.name}</option>
                                            <else/>
                                            <option value="{$vo.id}">{$vo.name}</option>
                                        </if>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="col-md-2" style="width:12%">
                            <label class="control-label w70">数量：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="pnumber[]" style="width:100px;" value="{$po.inumber}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:13%">
                            <label class="control-label w100">材料价格：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="pmaterial_price[]" style="width:100px;"
                                       value="{$po.imaterial_price}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:13%">
                            <label class="control-label w100">维修单价：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="prepair_price[]" style="width:100px;"
                                       value="{$po.irepair_price}">
                            </div>
                        </div>
                        <div class="col-md-2" style="width:12%">
                            <label class="control-label w100">更换单价：</label>
                            <div class="col-md-4">
                                <input type="text" class="form-control"  disabled name="pchange_price[]" style="width:100px;"
                                       value="{$po.ichange_price}">
                            </div>
                        </div>
                    </div>
                </div>
            </foreach>
            <div class="form-group" style="width:100%">
                <label class="control-label" style="width: 170px">有无栏杆：</label>
                <div class="col-md-2">
                    <select class="form-control"  disabled name="pro_railing" id="select_langan">
                        <if condition="$pro_railing eq 1">
                            <option value="1" selected>有</option>
                            <option value="2">无</option>
                        </if>
                        <if condition="$pro_railing eq 2">
                            <option value="1">有</option>
                            <option value="2" selected>无</option>
                        </if>
                    </select>
                </div>
            </div>
            <foreach name="railData" item="ro">
                <div class="form-group" name="base">
                    <div class="col-md-2" name="langan" style="width: 22%">
                        <label class="control-label" style="width: 170px">{$ro.iname}：</label>
                        <input type="hidden" name="rname[]" value="{$ro.iname}">
                        <input type="hidden" name="rsort[]" value="{$ro.isort}">
                        <input type="text" class="form-control minwidth"  disabled name="rwidth[]" placeholder="宽"
                               value="{$ro.iwidth}">
                        <input type="text" class="form-control minwidth"  disabled name="rheight[]" placeholder="高"
                               value="{$ro.iheight}">
                        <input type="text" class="form-control minwidth"  disabled name="rthick[]" placeholder="厚"
                               value="{$ro.ithick}"> mm
                    </div>
                    <div class="col-md-2" name="langan" style="width: 19%">
                        <label class="control-label w100">材料种类：</label>
                        <div class="col-md-4">
                            <select class="form-control"  disabled name="rcate[]">
                                <volist name="cate_type" id="vo">
                                    <if condition="$ro.icate eq $vo.id">
                                        <option value="{$vo.id}" selected>{$vo.name}</option>
                                        <else/>
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    </if>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-2" style="width:12%" name="langan">
                        <label class="control-label w70">数量：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rnumber[]" style="width:100px;" value="{$ro.inumber}">
                        </div>
                    </div>
                    <div class="control-group1" style="width:13%" name="langan">
                        <label class="control-label w100">材料价格：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rmaterial_price[]" style="width:100px;"
                                   value="{$ro.imaterial_price}">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">维修单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rrepair_price[]" style="width:100px;"
                                   value="{$ro.irepair_price}">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:12%" name="langan">
                        <label class="control-label w100">更换单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rchange_price[]" style="width:100px;"
                                   value="{$ro.ichange_price}">
                        </div>
                    </div>
                </div>
            </foreach>
            <div class="form-group" name="langan" style="display:none">
                <div name="base">
                    <div class="col-md-2" name="langan" style="width: 22%">
                        <label class="control-label">后栏杆柱：</label>
                        <input type="hidden" name="rname[]" value="后栏杆柱">
                        <input type="hidden" name="rsort[]" value="1">

                        <input type="text" class="form-control minwidth"  disabled name="rwidth[]" placeholder="宽" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rheight[]" placeholder="高" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rthick[]" placeholder="厚" value=""> mm

                    </div>
                    <div class="col-md-2" name="langan" style="width: 19%">
                        <label class="control-label w100">材料种类：</label>
                        <div class="col-md-4">
                            <select class="form-control"  disabled name="rcate[]">
                                <volist name="cate_type" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-2" style="width:12%" name="langan">
                        <label class="control-label w70">数量：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rnumber[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">材料价格：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rmaterial_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">维修单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rrepair_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">更换单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rchange_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                </div>
                <div class="form-group" name="base">
                    <div class="col-md-2" name="langan" style="width: 20%">
                        <label class="control-label">前栏杆柱：</label>
                        <input type="hidden" name="rname[]" value="前栏杆柱">
                        <input type="hidden" name="rsort[]" value="2">
                        <input type="text" class="form-control minwidth"  disabled name="rwidth[]" placeholder="宽" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rheight[]" placeholder="高" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rthick[]" placeholder="厚" value=""> mm
                    </div>
                    <div class="col-md-2" name="langan" style="width: 19%">
                        <label class="control-label w100">材料种类：</label>
                        <div class="col-md-4">
                            <select class="form-control"  disabled name="rcate[]">
                                <volist name="cate_type" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-2" style="width:12%" name="langan">
                        <label class="control-label w70">数量：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rnumber[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">材料价格：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rmaterial_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="col-md-2" style="width:13%" name="langan">
                        <label class="control-label w100">维修单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rrepair_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label w100">更换单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rchange_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                </div>
                <div class="form-group" name="base">
                    <div class="control-group1" name="langan" style="width: 20%">
                        <label class="control-label">栏板：</label>
                        <input type="hidden" name="rname[]" value="栏板">
                        <input type="hidden" name="rsort[]" value="3">

                        <input type="text" class="form-control minwidth"  disabled name="rwidth[]" placeholder="宽" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rheight[]" placeholder="高" value="">
                        <input type="text" class="form-control minwidth"  disabled name="rthick[]" placeholder="厚" value=""> mm
                    </div>
                    <div class="control-group1" name="langan" style="width: 19%">
                        <label class="control-label w100">材料种类：</label>
                        <div class="col-md-4">
                            <select class="form-control"  disabled name="rcate[]">
                                <volist name="cate_type" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label w70">数量：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rnumber[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label w100">材料价格：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rmaterial_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label w100">维修单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rrepair_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label w100">更换单价：</label>
                        <div class="col-md-4">
                            <input type="text" class="form-control"  disabled name="rchange_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                </div>
                <div  class="form-group" name="base">
                    <div class="control-group1" name="langan" style="width: 20%">
                        <label class="control-label">抱古：</label>
                        <input type="hidden" name="rname[]" value="抱古">
                        <input type="hidden" name="rsort[]" value="4">
                        <div class="controls">
                            <input type="text" class="form-control minwidth"  disabled name="rwidth[]" placeholder="宽" value="">
                            <input type="text" class="form-control minwidth"  disabled name="rheight[]" placeholder="高" value="">
                            <input type="text" class="form-control minwidth"  disabled name="rthick[]" placeholder="厚" value=""> mm
                        </div>
                    </div>
                    <div class="control-group1" name="langan" style="width: 19%">
                        <label class="control-label w100">材料种类：</label>
                        <div class="controls">
                            <select class="form-control"  disabled name="rcate[]">
                                <volist name="cate_type" id="vo">
                                    <option value="{$vo.id}">{$vo.name}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label inputw">数量：</label>
                        <div class="controls marleft">
                            <input type="text" class="form-control"  disabled name="rnumber[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label inputw">材料价格：</label>
                        <div class="controls marleft">
                            <input type="text" class="form-control"  disabled name="rmaterial_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label inputw">维修单价：</label>
                        <div class="controls marleft">
                            <input type="text" class="form-control"  disabled name="rrepair_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                    <div class="control-group1" style="width:12%" name="langan">
                        <label class="control-label inputw">更换单价：</label>
                        <div class="controls marleft">
                            <input type="text" class="form-control"  disabled name="rchange_price[]" style="width:100px;" value="">
                        </div>
                    </div>
                </div>
            </div>
            <!--</if>-->
            <div class="form-group" >
                <label class="control-label" style="width: 170px">有无附件：</label>
                <div class="col-md-8">
                    <select class="form-control"  disabled name="pro_annex" id="select_fujian">
                        <option value="1" <if condition="$pro_annex eq 1">selected </if>>有</option>
                        <option value="2" <if condition="$pro_annex eq 1">selected </if>>无</option>
                    </select>
                </div>
            </div>
            <!--<if condition="$pro_annex eq 1">-->
            <foreach name="annexData" item="ao" key="a">
                <div class="form-group" name="base">
                    <div class="col-md-2" name="fujian">
                        <label class="control-label" style="width: 170px">选择附件：</label>
                        <div class="col-md-5">
                            <select class="form-control"  disabled name="annex_id[]">
                                <volist name="annex" id="vo">
                                    <if condition="$ao.annex_id eq $vo.id">
                                        <option value="{$vo.id}" selected>{$vo.name}</option>
                                        <else/>
                                        <option value="{$vo.id}">{$vo.name}</option>
                                    </if>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="col-md-2" name="fujian">
                        <label class="control-label">数量：</label>
                        <div class="col-md-5">
                            <input type="text" class="form-control"  disabled name="anumber[]" value="{$ao.anumber}">
                        </div>
                    </div>
                    <div class="col-md-2" name="fujian" style=" width:50%">
                        <if condition="$a eq 0">
                            <div class="btn btn-primary" id="add_fujian">添加附件</div>
                            <else/>
                            <div class='btn btn-primary' id='del_fujian'>删除附件</div>
                        </if>
                    </div>
                </div>
            </foreach>
            <!--<else />-->
            <div  class="form-group" name="fujian" style="display:none">
                <div class="control-group1">
                    <label class="control-label" style="width: 170px">选择附件：</label>
                    <div class="controls">
                        <select class="form-control"  disabled name="annex_id[]">
                            <volist name="annex" id="vo">
                                <option value="{$vo.id}">{$vo.name}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="control-group1">
                    <label class="control-label">数量：</label>
                    <div class="controls">
                        <input type="text" class="form-control"  disabled name="anumber[]" value="">
                    </div>
                </div>
                <div class="control-group1" style=" width:50%">
                    <div class="btn btn-primary" id="add_fujian">添加附件</div>
                </div>
            </div>
            <!--</if>-->
</div>
</fieldset>
</form> 
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
